// 定义不确定接口类型
interface Obj {
  [name: string]: any
}

let obj2: Obj = {
  name: 'abc',
  1: 'skal'
}

function hiArr<T>(params: T[]) {}

hiArr<number>([1,2])

function hiABC<T, P>(arg1: T, arg2: P) {}
hiABC<number, string>(1, 'abc')